def bubble_sort (nums):
swapped = True
while swapped:
swapped = False
for i in range(Len (nums) -1):
if nums[i]> nums[i+1]:
nums lil, nums[i+1] = nums[i+11, nums[i]
swapped = True
def readlist (filename)
file-open (filename, "r")
data=file. readlines ()
